package com.lyc.ssm.dao;

import com.lyc.ssm.domain.Teacher;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TeacherMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Teacher record);

    int insertSelective(Teacher record);

    Teacher selectByPrimaryKey(Integer id);

    //@Param("ids")手动声明参数名是ids
    List<Teacher> selectByPrimaryKeys(@Param("ids") List<Integer> ids);

    Teacher selectByPrimaryKeyWithStudents(Integer id);

    int updateByPrimaryKeySelective(Teacher record);

    int updateByPrimaryKey(Teacher record);
}